import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

public class GameData {
	private Set sequence;
	private Integer seqNum= 0;
	private Integer FirstPlayerCounter = 0;
	private Integer SecondPlayerCounter = 0;
	private Double gameValue = 1.0;
	private Integer bidWiner = 0;
	private Iterator iter;
	public static void main(String args[]) {
		
	}
	
	public void setSequence(Object sequence) {
		this.sequence = new HashSet();
		this.iter = this.sequence.iterator();
	}
	
	public void addToSequence(Object newElement) {
		
		if (this.sequence.add(newElement)) {
		      System.out.println("addition successful");
		    } else {
		      System.out.println("addition failed");
		    }
	}
	
	public Integer removeFromSequence() {
		int Result = Integer.parseInt(iter.next().toString()); 
		if (this.sequence.remove(Result)) {
		      System.out.println("removing successful");
		      return Result;
		    } else {
		      System.out.println("removing failed");
		      return -1;
		    }
		
	}
	
	
	public Object getSequence() {
		return sequence;
	}
	public void setGameValue(Double gameValue) {
		this.gameValue = gameValue;
	}
	public Double getGameValue() {
		return gameValue;
	}
	public void setFirstPlayerCounter(Integer firstPlayerCounter) {
		FirstPlayerCounter = firstPlayerCounter;
	}
	public Integer getFirstPlayerCounter() {
		return FirstPlayerCounter;
	}
	public void setSecondPlayerCounter(Integer secondPlayerCounter) {
		SecondPlayerCounter = secondPlayerCounter;
	}
	public Integer getSecondPlayerCounter() {
		return SecondPlayerCounter;
	}
	public void setSeqNum(Integer seqNum) {
		this.seqNum = seqNum;
	}
	public Integer getSeqNum() {
		return seqNum;
	}

	public void setBidWiner(Integer bidWiner) {
		this.bidWiner = bidWiner;
	}

	public Integer getBidWiner() {
		return bidWiner;
	}
}
